/**
 * Created by cz on 2017/5/4.
 */
import React,{Component} from "react";
import {
    View,
    Image,
    Text,
    StyleSheet,
    Navigator
}from "react-native";
import HomePage from "./HomePage"
import NavigatorBar from "../common/NavigatorBar"
export default class WelcomePage extends Component{
    componentDidMount(){
        this.timer = setTimeout(()=>{
            this.props.navigator.resetTo({
                component:HomePage
            })
        },2000)
    }
    componentWillUnmount(){
        this.timer&&clearTimeout(this.timer);
    }
    render(){
        return (
            <View>
                <NavigatorBar
                    title={"程柱欢迎您"}
                />
                <Image source={require('../../img/cz.jpg') } />
            </View>
        )
    }
}